home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / wlib11_2.zip / EXAMPLES.EXE / EXAM25.C < prev    next >
C/C++ Source or Header  |  1991-03-13  |  552b  |  22 lines

  1.   #include "window.h"
  2.   #define NORM   CREATE_VIDEO_ATTRIBUTE(black,white)
  3.  
  4.   WPOINTER w;
  5.   int i;
  6.  
  7.   main()
  8.   {
  9.     WindowInitializeSystem();
  10.     WindowSaveInitial(0);
  11.     w = WindowInitialize(BORDER,1,1,20,10,NORM,NORM,SINGLEBOX);
  12.     WindowOpen(w);
  13.     WindowDisplay(w,1,NOEFFECT);
  14.     GET_KEY();
  15.  
  16.     /* Specify row 0 to write on */
  17.     WindowWriteCenterString(w,"This is a title",0);
  18.  
  19.     /* Now write title on bottom by using the height structure member */
  20.  
  21.     WindowWriteCenterString(w,"This is a title",w->height + 1);
  22.   }